package configs

import (
	"github.com/spf13/viper"
	"petCombo-srv/global"
)

func Config() {
	viper.SetConfigFile("./dev.yaml")
	err := viper.ReadInConfig()
	if err != nil {
		panic(err)
	}
	err = viper.Unmarshal(&global.Config)
	if err != nil {
		panic(err)
	}
}
